#pragma once

#include "iskia_control.h"

#include <memory>
#include <list>

class SkiaControlHover : virtual public ISkiaControl {
public:
    ~SkiaControlHover() override = default;

    bool IsHover() const { return hover_; }

    void OnMouseMotion(int32_t x, int32_t y) override
    {
        hover_ = IsContain(x, y);
    }

private:
    bool hover_ = false;
};
